from PIL import Image
import pytesseract
# 需要安装: https://blog.csdn.net/u010698107/article/details/121736386

Image = Image.open(r'src/imgs/2.png')

text = pytesseract.image_to_string(Image)
print(text)